package com.example.scanner;

import java.io.IOException;
import java.util.List;

public class Application {
    public static void main(String[] args) {
        try {
            List<Class<?>> controllers = ClasspathScanner.scanForControllers("com.example.controller");
            for (Class<?> controller : controllers) {
                System.out.println("Found controller: " + controller.getName());
            }
        } catch (ClassNotFoundException | IOException e) {
            e.printStackTrace();
        }
    }
}